/**
  * Copyright 2019 bejson.com 
  */
package com.xingkeduo.dto.transter.comment;

import com.xingkeduo.utils.ResponseUtils;
import lombok.Data;

@Data
public class CommentSubmit {

    private int error;
    private Object reason;
    private ContentComment content;

    public void covert(ResponseUtils responseUtils, ContentComment contentComment) {
        this.error=responseUtils.getStatus()==1?0:1;
        this.reason=responseUtils.getMsg();
        this.content=contentComment;
    }
}